//package com.baitiaojun.security.core.handler;
//
//import com.baitiaojun.common.domain.model.result.CommonResult;
//import com.baitiaojun.common.utils.servlet.ServletUtils;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//@Component
//public class LogoutHandler implements LogoutSuccessHandler {
//
//    @Override
//    public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
//        ServletUtils.render(response, CommonResult.ok());
//    }
//}
